package com.gfdd.tea.controller;


import com.gfdd.tea.common.R;
import com.gfdd.tea.service.WeChatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class WeChatController {
    @Autowired
    WeChatService wc;

    @RequestMapping("/cis")
    public R<String> getcode(@RequestParam(value = "code")String  code){
        System.out.println(code);

//        wc.codetoopenid(code);
//        return R.success(wc.codetoopenid(code));

    return null;}



}
